package appconfig

import (
	"fmt"
	"github.com/spf13/viper"
)

type AppConfig struct {
	JwtToken
}

type JwtToken struct {
	AccessExpire int64
	AccessSecret string
}

var AppData AppConfig

func InitAppConfigApi() {
	viper.SetConfigFile("./appconfig/dev.yaml")
	err := viper.ReadInConfig()
	if err != nil {
		fmt.Print("动态文件获取失败", err)
		return
	}
	fmt.Print("动态文件获取成功", AppData)
}
